package com.skt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skt.domain.PO.CartItem;
import com.skt.domain.PO.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    @Select("SELECT * FROM shopping_cart WHERE user_id = #{userId} AND status = 1")
    ShoppingCart selectByUserId(@Param("userId") Long userId);
}
